package org.liubility.server.usersys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Jdragon
 * @email: 1061917196@qq.com
 * @Date: 2020.09.04 16:01
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("base_role")
public class Role extends Model<Role> {

    @TableId(type = IdType.AUTO)
    private int id;

    private String roleName;

    private String roleDescribe;

    @Override
    protected Serializable pkVal(){
        return this.id;
    }
}